//
// Created by gogoqiu on 2022/3/22.
//

#include "wx/wx.h"

/*
 * setup the core data
 *
 */
class MainFrame: public wxFrame{
public:
    explicit MainFrame( wxWindow *parent );
private:
DECLARE_EVENT_TABLE()
};

MainFrame::MainFrame(wxWindow *parent):wxFrame(  parent, wxID_ANY, "配置", wxDefaultPosition, wxDefaultSize ) {
    SetClientSize(wxSize(350,500));
}

BEGIN_EVENT_TABLE ( MainFrame, wxFrame )
                //EVT_MENU ( ACTION_EVENT, PreferencesFrame::OnActionEvent )
END_EVENT_TABLE()

/*
 * normal
 * */
class demo: public wxApp{
public:
protected:
    bool OnInit() override;
    int OnExit() override;
private:
};

int demo::OnExit() {
    return wxAppConsoleBase::OnExit();
}

bool demo::OnInit() {
    //return wxAppConsoleBase::OnInit();
    auto * frame = new MainFrame (nullptr );
    frame->Show ( TRUE );
}



//BEGIN_EVENT_TABLE( MainFrame wxFrame )
//END_EVENT_TABLE

/*
int main(int argc, char* argv[]){
    wxString s;
    s= wxT("xx");
    wxMessageBox( wxT("测试"), wxT("你好"), 0 );
    return 0;
}*/

DECLARE_APP(demo)

IMPLEMENT_APP ( demo )